﻿using DevTeam;
using System;
using System.Data;

namespace ConfExpert.Forms.Depo
{
    public partial class Detail500 : XPopupForm
    {
        int ProductFeatureTempId;
        public Detail500(int ProductFeatureTempId)
        {
            InitializeComponent();
            this.ProductFeatureTempId = ProductFeatureTempId;
        }

        private void Detail500_Load(object sender, EventArgs e)
        {
            DataTable t = ExecuteDataTable("GetProductPhotoTemp", ProductFeatureTempId);
            pictureEdit1.Image = ConvertByteArrayToImage(t.Rows[0]["Photo500"] as byte[]);
        }
    }
}
